#include<stdio.h>
int main()
{
    char ch;
    int digit,letter,other;
    digit=letter=other=0;
    while(scanf("%c",&ch),ch!='\n')
    {
        if(ch>='0'&&ch<='9')
        digit++;
        else
        if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z')
        letter++;
        else
        other++;
    }
    printf("letter:%d\n",letter);
    printf("digit:%d\n",digit);
    printf("other:%d\n",other);
    return 0;
}
